package com.liugh.model;


import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Builder
@Setter
@Getter
@NoArgsConstructor
@ToString
/**
 * 用于下载时返回文件下载路径及原始文件名
 */
public class DownloadModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件存储的URL
     */
    private String path;

    /**
     * 原始文件名
     */
    private String name;

    public DownloadModel(String path,String name) {
        this.path = path;
        this.name = name;
    }
}
